<?php defined('BASEPATH') or exit('No direct script access allowed');
class Plugin_Users extends Plugin
{
	public function avatar(){
		$result = base_url('uploads/no_img.jpg');
		$file      = $this->attribute('file');
		if(is_file('uploads/users/avatar/'.$file))
			$result = base_url('uploads/users/avatar/'.$file);
		return $result;
	}
}
